﻿using System;
using System.Collections.Generic;
using System.Text;

namespace AjaxEngines
{
    [Serializable]
    public  class WriteContentEventArgs:EventArgs 
    {
        private MessageCollection _outMessages;
        private bool _canel;
        public WriteContentEventArgs(MessageCollection outMessages, bool canel)
        {
            _outMessages = outMessages;
            _canel = canel;
        }
        /// <summary>
        /// 待输出的消息
        /// </summary>
        public MessageCollection OutMessages
        {
            get
            {
                return _outMessages;
            }
            set
            {
                _outMessages = value;
            }
        }
        /// <summary>
        /// 是否取消响应，如果为true则取消，将输出正常的页面。
        /// </summary>
        public bool Canel
        {
            get
            {
                return _canel;
            }
            set
            {
                _canel = value;
            }
        }
    }

    public delegate void WriterContentEventHandler(Object sender,WriteContentEventArgs e);
}
